package com.xyp.mesadmin.md.unit.service;

import com.github.pagehelper.PageInfo;
import com.xyp.mesadmin.md.unit.param.UnitPageParam;
import com.xyp.mescommon.entity.md.MdUnitMeasure;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface MdUnitMeasureService {
    //分页查询
    PageInfo<MdUnitMeasure> findAll (UnitPageParam unitPageParam);
    //查询所有
    List<MdUnitMeasure> unitList ();
    //根据id查询
    MdUnitMeasure findByid (Integer id);
    //删除
    void deleteUnitById (Integer id);
    //批量删除
    void deleteUnitBatch (List<Integer> ids);
    //添加
    void addUnit (MdUnitMeasure mdUnitMeasure);
    //修改
    void updateUnit (MdUnitMeasure mdUnitMeasure);
    //上传文件
    void importUnit (MultipartFile file);
    //导出文件
    void exportExcel(HttpServletResponse response);
}
